home *** CD-ROM | disk | FTP | other *** search
/ VRML Browsing & Building Cyberspace / VRML - Browsing and Building Cyberspace.iso / examples / fourth.wrl < prev    next >
Text File  |  1995-06-13  |  482b  |  21 lines

  1. #VRML V1.0 ascii
  2.  
  3. # Example four - using emissive colors
  4.  
  5. # Here comes the Sun
  6. # The Separator node groups everything within it together
  7. Separator {
  8.  
  9.     # The material will effect all subsequent nodes
  10.     # The sun is yellow, isn't it?  Additive color means red + green = yellow
  11.     # We're switching to emissive color because the Sun gives off light.
  12.     Material {
  13.         emissiveColor 1 1 0        # The Sun emits lots of yellow light
  14.     }
  15.  
  16.     Sphere {
  17.         radius 10        # Big Sun
  18.     }
  19. }
  20.  
  21.